<div class="row toolbar">
  <div class="col-md-6">
    <span class="toolbar-header">
      <%= t :appointment_statuses_list %>
    </span>
  </div>
  <div class="col-md-6 text-right">
    <ul class="toolbar-nav">
      <li><%= link_to feather_icon('circle-plus'), new_appoinment_status_path %></li>
      <li><%= link_to feather_icon('trash'), new_appoinment_status_path %></li>
      <li><%= link_to feather_icon('file-add'), new_appoinment_status_path %></li>
    </ul>
    <input type="text" placeholder="Search" class="search-box" />
  </div>
</div>

<h1><%= "#{t(:listing)} #{t(:appointment_statuses)}" %></h1>

<table class="table table-striped">
  <thead>
    <tr>
      <th>Label</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @appointment_statuses.each do |appointment_status| %>
      <tr>
        <td><%= appointment_status.label %></td>
        <td><%= link_to "#{t(:show)}", appointment_status %></td>
        <td><%= link_to "#{t(:edit)}", edit_appointment_status_path(appointment_status) %></td>
        <td><%= link_to "#{t(:destroy)}", appointment_status, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to "#{t(:new_appointment_status)}", new_appointment_status_path %>
